<%@page import="java.util.TimeZone"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="bean.entity.Announce"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../css/announce/announceContent.css" />
</head>
<body>
	<%
		List<Announce> annList = (List<Announce>)request.getAttribute("annList");
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
	
		sdf.setTimeZone(TimeZone.getTimeZone("GMT+8"));
		for (Announce ann: annList) {
			String poTime = sdf.format(ann.getPoTime());
	%>
	<div class="announcePaper">
		<div class="announceBlock">
			<span class="title"><%=ann.getTitle()%></span>
			<span class="content"><%=ann.getContent()%></span>
		</div>
		<span class="date"><%=poTime%></span>
	</div>
	<%
		}
	%>
</body>
</html>